﻿using System;
using System.Linq;
using System.Text;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using SqlSugar;

namespace Aioms.Dtos
{
    ///<summary>
    /// 巡检点的巡检项结果
    ///</summary>
    public class DeviceStandardResultDto
    {
        public DeviceStandardResultDto()
        {
        }

        /// <summary>
        /// Desc:企业id
        /// Default:
        /// Nullable:True
        /// </summary>     
        [FromForm(Name = "eid")]
        [JsonProperty("eid")]
        public int Eid { get; set; }

        /// <summary>
        /// 工单ID
        /// </summary>     
        [FromForm(Name = "woid")]
        [JsonProperty("woid")]
        public int Woid { get; set; }

        /// <summary>
        /// 设备ID
        /// </summary> 
        [FromForm(Name = "dvid")]
        [JsonProperty("dvid")]
        public long Dvid { get; set; }

        /// <summary>
        /// 设备类型ID
        /// </summary> 
        [FromForm(Name = "dvtid")]
        [JsonProperty("dvtid")]
        public int Dvtid { get; set; }

        /// <summary>
        /// 区域ID
        /// </summary> 
        [FromForm(Name = "aeid")]
        [JsonProperty("aeid")]
        public int Aeid { get; set; }

        /// <summary>
        /// 巡检点ID
        /// </summary> 
        //[FromForm(Name = "ipid")]
        //[JsonProperty("ipid")]
        //public int Ipid { get; set; }

        /// <summary>
        /// 来源: 巡检标准(xunjian)、点检标准(dianjian)
        /// </summary>           
        [FromForm(Name = "source")]
        [JsonProperty("source")]
        public string Source { get; set; }

        /// <summary>
        /// 巡检/点检标准ID
        /// </summary> 
        //[FromForm(Name = "bzid")]
        //[JsonProperty("bzid")]
        //public int Bzid { get; set; }

        /// <summary>
        /// 进度
        /// </summary>           
        [FromForm(Name = "progress")]
        [JsonProperty("progress")]
        public string Progress { get; set; }

        /// <summary>
        /// 巡检结果JSON格式字符串
        /// </summary>           
        [FromForm(Name = "result")]
        [JsonProperty("result")]
        public string Result { get; set; }

    }
}
